import {
  createRouter,
  createWebHashHistory,
} from "vue-router";

import total from "../components/total.vue";
import start from "../components/start.vue";

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: "/",
      name: "total",
      component: total,
      meata: {
        title: "首页",
      },
    },
    {
      path: "/start",
      name: "start",
     component: start,
      meata: {
        title: "开始游戏",
      },
    },
  ],
});

export default router;
